package com.hillky;

import com.hillky.annotation.YrpcService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    // 需要注入一个代理对象
    @YrpcService
    private HelloYrpc helloYrpc;

    @GetMapping("hello")
    public String hello(){
        return helloYrpc.sayHi("provider");
    }
}
